#include "CharPoint.h"

#include <cstring>


#include <unistd.h>


CharPoint::CharPoint() {
    //ctor
}


CharPoint::CharPoint(const int x, const int y) {
    this->x = x;
    this->y = y;
}

CharPoint::~CharPoint() {
    //dtor
}

CharPoint::CharPoint(const CharPoint& other) {
    memcpy(this, &other, sizeof (*this));
}




CharPoint& CharPoint::operator=(const CharPoint& rhs) {
    if (this == &rhs)
        return *this; // handle self assignment
    //assignment operator
    memcpy(this, &rhs, sizeof (*this));
    return *this;
}




